Development Environment for Language Processors Based on Attribute Grammars

نویسندگان

  • Akira Sasaki
  • Etsuya Shibayama
  • Satoshi Matsuoka
چکیده

To develop language processors efficiently is difficult because they need to deal with large data with complex structures. Using tools based on formal specification is one of the strategies to reduce the cost in developing language processors. However, the area of application which can be developed by these tools is limited. This dissertation aims at realization of the practical development environment for language processors based on the formalism of attribute grammars (AGs). AGs are a formalism that integrates syntax and semantics of languages. AGs have several advantages for development of language processors in that the formalization is intuitive and clear, and that attribute evaluators are automatically obtained from descriptions. However, the following disadvantages make it difficult to develop language processors by AGs: (1) difficulty in direct application of the pure (standard) AG formalism to tools because of the weak computation power, and (2) complication in debugging of AG descriptions, which arises from the difficulty specific to AGs. To overcome the first problem, we proposed circular remote attribute grammars (CRAGs), an extension of AGs that allows both circularity of attribute dependency and remote attribute references. We also showed a way to obtain efficient evaluators for CRAGs. By this research any control structure of the subject language can be treated and circularities of attribute dependency are allowed in AGs. As a result, stronger expressive power is obtained and efficient attribute evaluators are developed. For the second problem, the generalized framework for systematic debugging of AGs was proposed, which allows several forms of query and enables integration of various query based methods. This reduces the complication in debugging of AG descriptions. These accomplishments widen the application area of attribute grammar based software, which improves the development environment for language

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Prolog Framework for the Rapid Prototyping of Language Processors with Attribute Grammars

In this paper, we describe PAG (Prototyping with Attribute Grammars), a framework for building Prolog prototypes from specifications based on attribute grammars, which we have developed for supporting rapid prototyping activities in an introductory course on language processors. This framework works for general noncircular attribute grammars with arbitrary underlying context-free grammars, incl...

متن کامل

Guarded Attribute Grammars

Contrary to a widely-held belief, it is possible to construct executable specifications of language processors that use a top-down parsing strategy and which have structures that directly reflect the structure of grammars containing left-recursive productions. A novel technique has been discovered by which the non-termination that would otherwise occur is avoided by ‘guarding’ top-down left-rec...

متن کامل

First-class Attribute Grammars

This paper is a contribution to the ongoing quest for modular descriptions of language processors, with the specific aim of rapidly prototyping domain-specific languages [21]. Some might argue that this problem was solved in the eighties, with the development of a proliferation of language processors based on attribute grammars [11, 15, 22]. Others might argue that functional programming langua...

متن کامل

VisualLISA: A visual environment to develop attribute grammars

The focus of this paper is on crafting a new visual language for attribute grammars (AGs), and on the development of the associated programming environment. We present a solution for rapid development of VisualLISA editor using DEViL. DEViL uses traditional attribute grammars, to specify the language’s syntax and semantics, extended by visual representations to be associated with grammar symbol...

متن کامل

Implementing aspect-oriented programming constructs as modular language extensions

Extensible programming languages and their compilers are experimental systems that use highly modular specifications of languages and language extensions in order to allow a variety of language features to be easily imported, by the programmer, into his or her programming environment. Our framework for extensible languages is based on higher-order attribute grammars extended with a mechanism ca...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004